package lxh.groovy.basic;

class FileTest
{
	static void main(args)
	{
		def myFile = new File("f:/temp/a.txt");
		def filePrintLine = {println "line: "+it }
		myFile.eachLine(filePrintLine);
	}
}